package com.oujia.cloud.cloudcommon.dto;

import com.oujia.cloud.cloudcommon.validator.group.AddGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@ApiModel(value = "RanKingDTO",description = "排行榜")
public class RanKingDTO {


    @ApiModelProperty(value = "用户邀请数")
    @NotNull(message = "用户邀请数不能为空", groups = {AddGroup.class})
    private int count;

    @ApiModelProperty(value = "用户名称")
    @NotBlank(message = "用户名称不能为空", groups = {AddGroup.class})
    private String userName;

    @ApiModelProperty(value = "用户头像")
    @NotBlank(message = "用户头像不能为空", groups = {AddGroup.class})
    private String userPic;
}
